package com.cms.stu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cms.common.utils.PageUtils;
import com.cms.stu.entity.ClassEntity;
import com.cms.stu.entity.StudentEntity;
import com.cms.stu.to.StudentDetailTo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author weixiaochun
 * @email xiaochun0121@163.com
 * @date 2022-03-15 10:53:38
 */
public interface StudentService extends IService<StudentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void autoSave(StudentEntity student);

    StudentEntity login(StudentEntity studentEntity);

    StudentEntity selectInfoById(Long id);

    List<Long> selectIdsByClassId(Long classId);

    List<StudentDetailTo> selectStudentInfoByClassId(Long classId, String studentName);

    List<ClassEntity> selectClassInfoByStudentIds(List<Long> studentIds);
}

